/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import type.Month;

/**
 *
 * @author Andy
 */
@Entity(name = "PlannedReserve")
public class PlannedReserveEntity extends ReservationEntity implements Serializable {
    
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date plannedReceiveDate;
    int yearOfProduction;
    Month monthOfProduction;
    int amountFulfilled;

    public PlannedReserveEntity() {
        super();
    }

    public int getAmountFulfilled() {
        return amountFulfilled;
    }

    public void setAmountFulfilled(int amountFulfilled) {
        this.amountFulfilled = amountFulfilled;
    }

    public Month getMonthOfProduction() {
        return monthOfProduction;
    }

    public void setMonthOfProduction(Month monthOfProduction) {
        this.monthOfProduction = monthOfProduction;
    }

    public int getYearOfProduction() {
        return yearOfProduction;
    }

    public void setYearOfProduction(int yearOfProduction) {
        this.yearOfProduction = yearOfProduction;
    }

    public Date getPlannedReceiveDate() {
        return plannedReceiveDate;
    }

    public void setPlannedReceiveDate(Date plannedReceiveDate) {
        this.plannedReceiveDate = plannedReceiveDate;
    }

    public String rootToString() {
        return "PlannedReserveEntity{" + "plannedReceiveDate=" + plannedReceiveDate + '}';
    }
    
}
